import pandas as pd

def excel2csv(path):
    excel_path = path
    csv_path = excel_path.replace("xlsx", "csv")
    df = pd.read_excel(excel_path)
    df.to_csv(csv_path, header= True, index= False)
    return df